
var app = getApp();
var com = require('../../common.js');
Page({
  data: {
    info: '',
    id: ''
  },
  onLoad: function (options) {
    var _this = this
    _this.setData({
      id: options.id
    })
    _this.onInfoPage()
  },
  onInfoPage() {
    console.log(this.data)
    var _this = this
    com.link(app.link.sub, {}, function (res) {
      console.log(res)
      _this.setData({
        info: res.data.response,
      })
    }, 'GET')
  },
  click(e) {
    var id = e.currentTarget.id
    if (id == 1) {
      wx.reLaunch({
        url: '/pages/newPageBankCentent/newPageBankCentent',
      })
    }
    if (id == 2) {
      wx.navigateBack({
        delta: 1
      })
    }

  }
})
